package com.pay.model.auto;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * omni交易事务
 *
 * @author fuce
 * @email 87766867@qq.com
 * @date 2019-08-07 13:05:22
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class OmniTransactionRes implements Serializable{

private static final long serialVersionUID=1L;


/**
 * 事务哈希
 */
    private String txid;

/**
 * 发送金额
 */
    private BigDecimal amount;

/**
 * 手续费
 */
    private BigDecimal fee;

/**
 * 发送者
 */
    private String sendingaddress;

/**
 * 接受者
 */
    private String referenceaddress;

/**
 * 是否与本钱包相关
 */
    private Integer ismine;

/**
 *
 */
    private Integer version;

/**
 * 类型
 */
    private Integer typeInt;

/**
 * 类型
 */
    private String type;

/**
 *
 */
    private Long propertyid;

/**
 *
 */
    private Integer divisible;

/**
 * 是否成功
 */
    private Integer valid;

/**
 * 如果交易确认失败了，那么此处会返回具体的原因。
 */
    private String invalidreason;

/**
 *
 */
    private String blockhash;

/**
 *
 */
    private Long blocktime;

/**
 *
 */
    private Long positioninblock;

/**
 *
 */
    private Long block;

/**
 * 确认数
 */
    private Long confirmations;

/**
 *
 */
    private String ecosystem;

/**
 *
 */
    private String propertytype;

/**
 *
 */
    private String category;

/**
 *
 */
    private String subcategory;

/**
 *
 */
    private String propertyname;

/**
 *
 */
    private String data;

/**
 *
 */
    private String url;

/**
 *
 */
    private String subsends;



    public String getTxid(){
            return txid;
            }

    public void setTxid(String txid){
            this.txid = txid ==null?null: txid.trim();
            }


    public BigDecimal getAmount (){
            return amount;
            }

    public void setAmount (BigDecimal amount) {
            this.amount = amount;
            }


    public BigDecimal getFee (){
            return fee;
            }

    public void setFee (BigDecimal fee) {
            this.fee = fee;
            }


    public String getSendingaddress(){
            return sendingaddress;
            }

    public void setSendingaddress(String sendingaddress){
            this.sendingaddress = sendingaddress ==null?null: sendingaddress.trim();
            }


    public String getReferenceaddress(){
            return referenceaddress;
            }

    public void setReferenceaddress(String referenceaddress){
            this.referenceaddress = referenceaddress ==null?null: referenceaddress.trim();
            }


    public Integer getIsmine (){
            return ismine;
            }

    public void setIsmine (Integer ismine) {
            this.ismine = ismine;
            }


    public Integer getVersion (){
            return version;
            }

    public void setVersion (Integer version) {
            this.version = version;
            }


    public Integer getTypeInt (){
            return typeInt;
            }

    public void setTypeInt (Integer typeInt) {
            this.typeInt = typeInt;
            }


    public String getType(){
            return type;
            }

    public void setType(String type){
            this.type = type ==null?null: type.trim();
            }


    public Long getPropertyid (){
            return propertyid;
            }

    public void setPropertyid (Long propertyid) {
            this.propertyid = propertyid;
            }


    public Integer getDivisible (){
            return divisible;
            }

    public void setDivisible (Integer divisible) {
            this.divisible = divisible;
            }


    public Integer getValid (){
            return valid;
            }

    public void setValid (Integer valid) {
            this.valid = valid;
            }


    public String getInvalidreason(){
            return invalidreason;
            }

    public void setInvalidreason(String invalidreason){
            this.invalidreason = invalidreason ==null?null: invalidreason.trim();
            }


    public String getBlockhash(){
            return blockhash;
            }

    public void setBlockhash(String blockhash){
            this.blockhash = blockhash ==null?null: blockhash.trim();
            }


    public Long getBlocktime (){
            return blocktime;
            }

    public void setBlocktime (Long blocktime) {
            this.blocktime = blocktime;
            }


    public Long getPositioninblock (){
            return positioninblock;
            }

    public void setPositioninblock (Long positioninblock) {
            this.positioninblock = positioninblock;
            }


    public Long getBlock (){
            return block;
            }

    public void setBlock (Long block) {
            this.block = block;
            }


    public Long getConfirmations (){
            return confirmations;
            }

    public void setConfirmations (Long confirmations) {
            this.confirmations = confirmations;
            }


    public String getEcosystem(){
            return ecosystem;
            }

    public void setEcosystem(String ecosystem){
            this.ecosystem = ecosystem ==null?null: ecosystem.trim();
            }


    public String getPropertytype(){
            return propertytype;
            }

    public void setPropertytype(String propertytype){
            this.propertytype = propertytype ==null?null: propertytype.trim();
            }


    public String getCategory(){
            return category;
            }

    public void setCategory(String category){
            this.category = category ==null?null: category.trim();
            }


    public String getSubcategory(){
            return subcategory;
            }

    public void setSubcategory(String subcategory){
            this.subcategory = subcategory ==null?null: subcategory.trim();
            }


    public String getPropertyname(){
            return propertyname;
            }

    public void setPropertyname(String propertyname){
            this.propertyname = propertyname ==null?null: propertyname.trim();
            }


    public String getData(){
            return data;
            }

    public void setData(String data){
            this.data = data ==null?null: data.trim();
            }


    public String getUrl(){
            return url;
            }

    public void setUrl(String url){
            this.url = url ==null?null: url.trim();
            }


    public String getSubsends(){
            return subsends;
            }

    public void setSubsends(String subsends){
            this.subsends = subsends ==null?null: subsends.trim();
            }


        }
